/*
 * Copyright 2011 Michael Guo
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package edu.uc.cs.guome.ir;

import java.io.Serializable;
import java.util.HashMap;

/**
 * The document object for indexing
 * @author(name="Michael Guo",date="01/18/2011")
 * @version 0.1
 */
public class Document implements Serializable {
	
	private static final long serialVersionUID = -7655685808196592572L;	
	private int docID;
	private String docName;
	private HashMap<String, TermFrequency> terms;
	
	public Document(int docID, String docName, HashMap<String, TermFrequency> terms) {
		super();
		this.docID = docID;
		this.docName = docName;
		this.terms = terms;
	}
	
	public Document() {}
	
	public int getDocID() {
		return docID;
	}
	
	public void setDocID(int docID) {
		this.docID = docID;
	}
	
	public String getDocName() {
		return docName;
	}
	
	public void setDocName(String docName) {
		this.docName = docName;
	}
	
	public HashMap<String, TermFrequency> getTerms() {
		return terms;
	}
	
	public void setTerms(HashMap<String, TermFrequency> terms) {
		this.terms = terms;
	}
}
